import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const Home = r => require([ '@/components/home/home.vue'], r);
const VueStore = () => import('@/components/vueStore/vueStore.vue');
const Watch = () => import('@/components/watch/watch.vue');
const Shu = () => import('@/components/shu/shu.vue');

export default new Router({
  routes: [
    {path: '/', redirect:{name:'home'}},
    {path: '/home', name: 'home', component: Home, children: [
        {path: 'vueStore', name: 'vueStore', component: VueStore},
        {path: 'watch', name: 'watch', components: {
            default: Shu,
            watch: Watch
          }},
      ]},

    // {path: '/shu', name: 'shu', component: Shu},
  ]
})
